package com.huifai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.huifai.entity.SysUser;
import com.huifai.mapper.SysUserMapper;
import com.huifai.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author wcj
 * @since 2019-07-16
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> findSysUsers(SysUser sysUser) {
        QueryWrapper<SysUser> queryWrapper=new QueryWrapper<>(sysUser);
        return sysUserMapper.selectList(queryWrapper);
    }
}
